<head>
	<script>
		/*setTimeout(function() 
			{
				$('#flashMessage').fadeOut('slow');
			}, 5000);*/
		
		
	</script>

</head>
<body>
	<center>
		<?php

			if ($eventos)
			{
		?>
		<table>
			<tr>
				<td>
					<center>
						<table style="width: 50%">
							<?php 
									/*echo $this->Form->create('Delete_Eventos_Especificos',array('url' => array(
																											   'controller' => 'eventos',
																											   'action' => 'delete_evento_especifico'
																										  )
																						)
																);*/
							?>
							<tr>
								<td >
									<center>
										<div>
										  <button class="boton_regular" type="button" onclick="seleccionar_todos(true);">Seleccionar Todos</button>
										</div>
										
									</center>
									
								</td>
								<td >
									<center>
										<div>
											<button class="boton_regular" type="button" onclick="seleccionar_todos(false);">Deseleccionar Todos</button>
										</div>
										
									</center>
									
								</td>
								<td >
									<center>
										<button class="boton_regular" onclick="return activar_deactivar_selecionados(true);" type="submit">Eliminar Evento(s)</button>
										<?php /*
					
										
										
											echo $this->Form->input('Eliminar Evento(s)',array(
																								'type' => 'button',
																								'class' => 'boton_regular',
																								'onclick' => 'return activar_deactivar_selecionados(true);',
																								'label' => array(
																													'style' => array('display: none')
																												)
																							)
																		);
											*/
										?>
									</center>
									
								</td>
								
							</tr>
						</table>
						<?php	
							echo $this->Session->flash();
						?>
					</center>
				</td>
			</tr>
			<tr>
				<td>
					<center>
						<input id="eventos_especificos_seleccionados" type="hidden">
						<table id ="tabla_evento_especifico">
							<tr>
								<td style="text-align: center"> 
									<b></b>
								</td>
								<td style="text-align: center"> 
									<b>Nombre de Evento</b>
								</td>
								<td style="text-align: center"> 
									<b>Ver Detalle</b>
								</td>
								<td style="text-align: center"> 
									<b>Editar</b>
								</td>
								<td style="text-align: center"> 
									<b>Eliminar</b>
								</td>
							</tr>
							<?php 
							foreach ($eventos as $evento) 
					        {
								
							 ?>
							<tr>
								<td style="text-align: center"> 
									<?php 
										
										echo $this->Form->input('check_box',array(
																						'type' => 'checkbox',
																						'id' => $evento['E']['id'],
																						'class' => 'check_box_eventos_especifico',
																						'label' => array(
																											'style' => array('display: none')
																										)
																					)
																);
									?>
								</td>
								<td style="text-align: center"> 
									<?php echo $evento['E']['nombre_evento']; ?>
								</td>
								<td style="text-align: center"> 
									<?php
											echo $this->Html->image('detail.png', array(
																						'alt' => 'CakePHP',
																						'onclick' => 'showDetalleEvento('.  $evento['E']['id'].')',
																						/*'url' => array('controller' => 'eventos',
																									   'action' => 'detalle_evento_especifico',
																									   $evento['E']['id']
																									  ),*/
																						'style' => array (
																											'cursor: pointer'
																										 )
																					  )
																	);
										?>
								</td>
								<td style="text-align: center"> 
									<?php
											echo $this->Html->image('edit1.png', array(
																						'alt' => 'CakePHP',
																						'onclick' => 'showEditEvento('.  $evento['E']['id'].')',
																						/*'url' => array('controller' => 'eventos',
																									   'action' => 'edit_evento_especifico',
																									   $evento['E']['id']
																									  ),*/
																						'style' => array (
																											'cursor: pointer'
																										 )
																					  )
																	);
										?>
								</td>
								<td style="text-align: center"> 
									<?php /*echo $this->Html->link($this->Html->image('delete.png', array(
																											'alt' => 'CakePHP',
																											'style' => array ('cursor: pointer')
																					  					)
																		       					 ),
																				 array(
																				 	
																				 	   'controller' => 'eventos',
																					   'action' => 'delete_evento_especifico',
																					   $evento['E']['id'],1
																					   
																					   
																					  ),
																				 array(
																				 
															                            'escape' => false,
															                            'confirm' => 'Estas seguro Eliminar el Evento '.$evento['E']['nombre_evento'].' ?'
															                          
																					  )
												 
																				      
																			  );*/
								  ?>
								  <a href="#" onclick="activar_deactivar_button(<?php echo $evento['E']['id']; ?>);">
											<img src="/BackEndRecursosHumanos/img/delete.png" alt="CakePHP" style="cursor: pointer">
										</a>
								</td>
								
							</tr>
							<?php 
							}?>
						</table>
					</center>
				</td>
			</tr>
		</table>

	 	
		<?php
		}
		else
		{
		?>
			<fieldset>
				<center>
					
					<h3 style="color: black">No se encontro ningun resultado </h3>
					<br />
				</center>
			</fieldset>
		<?php
		}
		?>
	</center>
</body>
